/**
 *  系统初始化配置
 * @type {{fontsizeList: void, predefineColors: string[]}}
 */
const sysconf = {
  fontsizeList: initFontSizeLit(),
  fontfamilys: initfontFamily(),
  predefineColors: [
    '#ff4500',
    '#ff8c00',
    '#ffd700',
    '#90ee90',
    '#00ced1',
    '#1e90ff',
    '#c71585',
    'rgba(255, 69, 0, 0.68)',
    'rgb(255, 120, 0)',
    'hsv(51, 100, 98)',
    'hsva(120, 40, 94, 0.5)',
    'hsl(181, 100%, 37%)',
    'hsla(209, 100%, 56%, 0.73)',
    '#c7158577'
  ]
}

/**
 *  初始化字体大小
 * @returns {[]}
 */
function initFontSizeLit () {
  let list = []
  for (let i = 1; i < 200; i++) {
    list.push({value: i, label: i + 'px'})
  }
  return list
}

/**
 *  初始化字体类型
 */
function initfontFamily () {
  let list = []
  list.push({value: 'STHeiti', label: '华文黑体'})
  list.push({value: 'STKaiti', label: '华文楷体'})
  list.push({value: 'STSong', label: '华文宋体'})
  list.push({value: 'STFangsong', label: '华文仿宋'})
  list.push({value: 'YouYuan', label: '幼圆'})
  list.push({value: 'Microsoft YaHei', label: '微软雅黑'})
  list.push({value: 'NSimSun', label: '新宋体'})
  list.push({value: 'SimSun', label: '宋体'})
  list.push({value: 'STXingkai', label: '华文行楷'})
  return list
}

export default sysconf
